import Vue from "vue"
import Vuex from "vuex"
import cartModule from "@/store/cart"
import userModule from "@/store/user"
// 1. 在vue中挂载vuex
Vue.use(Vuex)

// 2. 定义存放各个模块的常量
const store = new Vuex.Store({
  modules: {
    m_cart: cartModule,
    m_user: userModule,
  }
})

// 3. 导出store
export default store
